<?php


namespace app\api\controller;


use app\admin\model\Task;
use app\common\controller\Api;


class Wxtask extends Api {


    protected $userId;

    public function task(){
        $assign_id = $this->userId;

        $record = new Task();
        $info = $record->getInfo(null,null,null,null,"0",null,null,null ,null );
        //总数
        $total = Task::where(['assign_id'=>$assign_id,'state'=> "0"])->count();
        $result['total'] = $total;

        $this->success('请求成功!!!',$result);

    }

}
